tmem: Move global stats in a tmem_statistics structure
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sun, 15 May 2016 19:27:50 +0000 (15:27 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 2 Jun 2016 19:12:01 +0000 (15:12 -0400)
commit07b8cc4ead6c720b17ba95c57126b4a9def61c4c
tree7d1b7689dc35affe78d92bec0e58ca6d137df1fc
parent32df7917973a2393a5a6f77038d160d1a0e4d39f
tmem: Move global stats in a tmem_statistics structure

And adjust the macro: atomic_inc_and_max to update the structure.

Sadly one entry: pool->pgp_count cannot use this macro anymore
so unroll the macro for this instance.

No functional change. The name has the 'tmem_stats' as it will
be eventually non-local.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/tmem.c